﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="quote-results-table.aspx.cs" Async="true" Inherits="car_insurance_quote_results_table" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/controls/usrMoreInfoDropdownButton.ascx" TagName="usrMoreInfoDropdownButton"
    TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrMobileNo" TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="/css/extra.css" />
    <link rel="stylesheet" type="text/css" href="/css/moreinfo.css" />
    <link rel="stylesheet" type="text/css" href="/css/callme.css" />

    <script type="text/javascript" src="/includes/jtip.js"></script>
    <script type="text/javascript" src="/includes/min.js"></script>
    <script type="text/javascript" src="/includes/jquery.cycle.all.2.72.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
        <!--- Path Bar | Starts -->
        <div id="PathBar">
            <div class="ThreeSteps" id="divStep" runat ="server">
            <div class="TopMargin"></div>
            <div class="StepThree" id="divPath" runat="server"></div>
            </div>    
            
            <div class="right" id="divHotline" runat="server">             
             <asp:Image runat="server" ID="imgHotLine" ImageUrl="<%$ Resources:ImageResource,HotLineResultUrl%>" alt="Hotline"/>
            </div>                   
        </div>
                

        <!--- Path Bar | Ends   -->
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <%--<asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>--%><script src="/controls/IdNumber.js" type="text/javascript"></script><script src="/includes/ValidationError.js" type="text/javascript"></script><script src="/includes/ValidationEffect.js" type="text/javascript"></script><script type="text/javascript">
        var strprerow = "row0";
        var orgBgColor = "#ffffff";
        var arrRow;
        //var arrRow;
        function AddMoreInfoRows() {
            try {
                var table = document.getElementById('<%=gvCarResult.ClientID%>');
                var rowCount = table.rows.length;
                //alert("AddMoreInfoRows");
                //alert(rowCount);                
                rowCount += 5;
                arrRow = new Array();
                var curRowCount = 0;
                var newrowid = 0;
                for (var i = 1; i <= rowCount; i++) {

                    if (newrowid == 0)
                        newrowid += 2;
                    else
                        newrowid += 1;

                    var row = table.insertRow(newrowid + 1);
                    row.id = "NewRow" + newrowid.toString();
                    arrRow[curRowCount] = "NewRow" + newrowid.toString();
                    curRowCount++;
                    newrowid += 1;
                    //alert(row.id);
                    var rowCell = row.insertCell(0);
                    rowCell.colSpan = "14";
                    //var cellContent = document.createElement("input");
                    //cellContent.type = "text";
                    row.style.display = 'none';
                    rowCell.innerHTML = "";
                    //rowCell.appendChild(cellContent);
                }
            }
            catch (e) {
                //alert(e);
            }
        }

        function HideAllRow(currentRowId) {
            try {
                //alert("HideAllRow");
                //alert(arrRow.length.toString());
                for (var i = 0; i < arrRow.length; i++) {
                    if (arrRow[i] != null) {
                        //alert(arrRow[i].toString());
                        if (currentRowId != arrRow[i].toString())
                            HideCurrentRow(arrRow[i].toString());
                    }
                }
            }
            catch (e) {
                //alert(e);
            }
        }

        function HideCurrentRow(rowId) {

            var table = document.getElementById('<%=gvCarResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            if (curRow) {
                //alert(curRow);
                if (curRow.style.display == '')
                    curRow.style.display = 'none';
            }

            return false;
        }

        function HideRowMoreInfo(rowIdsuffix) {

            var rowId = 'NewRow' + rowIdsuffix;

            var table = document.getElementById('<%=gvCarResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            if (curRow) {
                //alert(curRow);
                if (curRow.style.display == '')
                    curRow.style.display = 'none';
            }

        }

        function ShowHideRow(rowId, rowText) {
            //alert(rowId);
            var table = document.getElementById('<%=gvCarResult.ClientID%>');
            var curRow = document.getElementById(rowId);
            //alert(curRow);
            if (curRow.style.display == '') {
                curRow.style.display = 'none';
            }
            else {
                var curCell = curRow.cells;
                curCell[0].innerHTML = rowText;
                curRow.style.display = '';
            }
            //alert("showhide");
            return false;
        }

        function AddRow(selectedRowId, rowText) {
            alert(tableID);
            alert(selectedRowId);
            alert(rowText);
            var curRow = document.getElementById(selectedRowId);
            var newRow = document.getElementById(selectedRowId + "Added");
            var curRowPos = current.rowIndex;
            alert(curRow);
            alert(curRowPos);
            if (newRow == null) {
                var table = document.getElementById(tableID);

                var rowCount = table.rows.length;
                var row = table.insertRow(curRowPos + 1);

                var rowCell = row.insertCell(0);
                rowCell.colSpan = "12";
                var cellContent = document.createElement("input");
                cellContent.type = "text";
                cellContent.innerHTML = rowText;
                rowCell.appendChild(cellContent);
            }
            else {
                if (newRow.style.display == '') {
                    newRow.style.display = 'none';
                }
                else {
                    newRow.style.display = '';
                }
            }
            return false;
        }

        function OpenUrl(url) {
            var winl = (screen.width - 800) / 2;
            var wint = (screen.height - 500) / 2;
            var settings = 'height=500,';
            settings += 'width=800,';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += 'scrollbars=yes,';
            settings += 'resizable=No';
            window.open(url, 'NEWWIN', settings);
        }
        function OpenWorkshop(coid) {
            var winl = (screen.width - 840) / 2;
            var wint = (screen.height - 500) / 2;
            var settings = 'height=500,';
            settings += 'width=840,';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += 'scrollbars=yes,';
            settings += 'resizable=No';
            window.open('ViewProviderWorkShop.aspx?comid=' + coid, 'NEWWIN', settings);
        }

        function removeSpaces(mystring) {
            mystring = mystring.toUpperCase();
            return mystring.split(' ').join('');
        }
    </script><div class="elements_inner_wrapper_">
            
            <div id="container">
                    <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
                    <div class="body" style="background: white;">
                        <div class="padding_lr15px">
                            <!-- Column Content | Start -->
                            <div class="col_content_full_100">
                                <div id="body">
                                    <div class="form_selection" id="divFormSelection" runat="server">
                                        <h3><asp:Label ID="lblProvider" runat="server"></asp:Label></h3>
                                        <div class="selection_wrap">
                                            <span class="fs_lbl">
                                                <asp:Label runat="server" ID="LabelInsType" Text="<%$Resources:CarInsurance,InsuranceType%>" />
                                            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </span>
                                            <asp:Label ID="lblInsuranceType" class="fs_lbl_m" runat="server" /><!--1</span>-->
                                            <span class="fs_lbl_r">
                                                <asp:Label runat="server" ID="Label3" Text="<%$Resources:CarInsurance,CarMakeModel%>" />
                                            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </span>
                                            <asp:Label ID="lblCarMakemodelTop" class="fs_lbl_m" runat="server" /><!--MERCEDES BENZ 190E</span>-->
                                            <span class="fs_lbl_r">
                                                <asp:Label runat="server" ID="Label2" Text="<%$Resources:CarInsurance,CarModelYear%>" />
                                            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </span>
                                            <asp:Label ID="lblYrofManTop" class="fs_lbl_m" runat="server" /><!--2009</span>-->
                                            <span class="fs_lbl_r">
                                                <asp:Label runat="server" ID="Label1" Text="<%$Resources:CarInsurance,NCB%>" Visible="false" />
                                            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </span>
                                            <asp:Label ID="lblNCBvalueTop" class="fs_lbl_m" runat="server" Visible="false" /><!--10</span>-->
                                            <span class="fs_lbl_r">
                                                <asp:Label runat="server" ID="lblCommencementdateTopCaption" Text="<%$Resources:CarInsurance,CoverCommencementDate%>" />
                                            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : </span>
                                            <asp:Label ID="lblCommencementdateTop" runat="server" /><!--18-October-2011</span>-->
                                        </div>
                                    </div>
                                    <div id="contentBody_full">
                                        <div style="text-align: left; display: none;">
                                            <ul id="stp_menu">
                                                <li class="stp1_r">
                                                    <asp:HyperLink ID="hplCarDetails" NavigateUrl="default.aspx" runat="server"><span class="stp_r_g"><asp:Label runat="server" ID="lblCarInsuranceDetails" Text="<%$Resources:CarInsurance,CarInsuranceDetails %>" /></span></asp:HyperLink></li>
                                                <li class="stp2_r">
                                                    <asp:HyperLink ID="hplProfile" NavigateUrl="profile.aspx" runat="server"><span class="stp_r_g"><asp:Label runat="server" ID="lblProfile" Text="<%$Resources:CarInsurance,Profile %>" /></span></asp:HyperLink></li>
                                                <li class="stp3_r">
                                                    <asp:HyperLink ID="hplCarResults" NavigateUrl="#" runat="server"><span class="active_r"><asp:Label runat="server" ID="lblQuoteResults" Text="<%$Resources:CarInsurance,QuoteResults %>" /></span></asp:HyperLink></li>
                                                <%--                        <li class="stp4">
                            <asp:HyperLink ID="hplBuyDirect" runat="server">
                                <span class="stp_r">
                                    <asp:Label runat="server" ID="lblBuyOnline" Text="<%$Resources:CarInsurance,BuyOnline %>" /></span></asp:HyperLink></li>--%></ul>
                                        </div>
                                        <!-- CALL ME | Start  -->
                                        <div id="callme" style="display: none; width:100%; height:260px">
                                            <div class="container">
                                                <div class="cls_btn">
                                                    <asp:ImageButton ID="ImageClose" runat="server" OnClientClick="ShowHideCallMe(false, '','', '', '', '', '','0');return false;"
                                                         ImageUrl="/images/button/close_x.png" AlternateText="Close" />
                                                </div>
                                                <div class="heading">
                                                    <img src="/images/callme/heading_broker.gif" id="imgCallMeCompanyLogo" height="31"
                                                        alt="Call Me" /></div>
                                                <div class="body">
                                                    <div class="pad_10px">
                                                        <h1><%=GetGlobalResourceObject("Menu", "PleaseConfirm")%>:</h1>
                                                        <div>
                                                            <asp:ValidationSummary ID="vsCallMe" runat="server" ValidationGroup="callme" ShowSummary="True"
                                                                HeaderText="<%$Resources:Menu,RequiredValidation %>" CssClass="errorSummary" />
                                                        </div>
                                                        <div class="w40p left">
                                                            <div class="w130px left">
                                                                <asp:Label ID="lblname" runat="server" Text="<%$Resources:CarInsurance,FirstName %>" />:</div>
                                                            <div class="blue left">
                                                                <asp:TextBox runat="server" CssClass="blue" Font-Size="12px" ID="txtCallMeFullName"
                                                                    Width="206px" MaxLength="80" Text=""></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvCallMeFullName" runat="server" ValidationGroup="callme"
                                                                    ErrorMessage="" Text="" validationErrorCssClass="validationError" ControlToValidate="txtCallMeFullName"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="revCallMeFullName" runat="server" ValidationGroup="callme"
                                                                    ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" validationErrorCssClass="validationError"
                                                                    ControlToValidate="txtCallMeFullName" ErrorMessage=""></asp:RegularExpressionValidator>
                                                            </div>
                                                            <br />
                                                            <div class="w130px left">
                                                                <asp:Label ID="lblMobile" runat="server" Text="<%$Resources:CarInsurance,MobileNo %>" />:</div>
                                                            <div class="blue left">
                                                                <uc1:usrMobileNo ID="usrCallMePhoneNo" CssClass="blue" ValidationGroup="callme" IsEnabled="true"
                                                                    PhoneNoErrorMessage="Mobile Phone No must be number value." PhoneNoValidErrorMessage="Mobile phone no is not valid."
                                                                    IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No." runat="server" />
                                                            </div>
                                                            <br />
                                                            <div class="w130px left">
                                                                <%=GetGlobalResourceObject ("CarInsurance","CallMeAt") %>:</div>
                                                            <div class="left">
                                                                <asp:DropDownList CssClass="blue" Font-Size="12px" runat="server" ID="ddlCallMeTime">
                                                                    <asp:ListItem Value="-1" Text="<%$Resources:CarInsurance,Select %>" />
                                                                    <asp:ListItem Value="1" Text="<%$Resources:CarInsurance,CallMeMorning %>" />
                                                                    <asp:ListItem Value="2" Text="<%$Resources:CarInsurance,CallMeAfternoon %>" />
                                                                    <asp:ListItem Value="3" Text="<%$Resources:CarInsurance,CallMeEvening %>" />
                                                                    <asp:ListItem Value="4" Text="<%$Resources:CarInsurance,CallMeAnytime %>" />
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvCallMeTime" runat="server" validationErrorCssClass="validationError"
                                                                    ValidationGroup="callme" ErrorMessage="" Text="" InitialValue="-1" ControlToValidate="ddlCallMeTime"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="w60p right">
                                                            <div class="w130px left">
                                                                <%=GetGlobalResourceObject("CarInsurance", "CarMake")%>:</div>
                                                            <div class="blue left">
                                                                <input runat="server" id="inputCallMeMakeModel" type="hidden" /><asp:Label runat="server" ID="lblCallMeMakeModel" Text=""></asp:Label></div>
                                                            <br />
                                                            <div class="w130px left">
                                                                <%=GetGlobalResourceObject("CarInsurance", "Insurer")%>:</div>
                                                            <div class="blue left">
                                                                <input runat="server" id="CompanyId" type="hidden" /><input runat="server" id="inputCallMeCompanyName" type="hidden" /><input runat="server" id="lblCultureInfo" type="hidden" /><asp:Label runat="server" ID="lblCallMeCompanyName" /></div>
                                                            <br />
                                                        </div>
                                                        <div class="seperator"></div>
                                                        <div class="w190px">
                                                            <div class="left">
                                                                <asp:ImageButton runat="server" ID="ibtCallMeConfirm" OnClientClick="LoadValidationErrorCss();return SubmitConfirm();"
                                                                    ValidationGroup="callme" ImageUrl="<%$Resources:ImageResource,CallMeConfirmButtonImageUrl%>"
                                                                    AlternateText="Confirm" OnClick="ibtCallMeConfirm_Click" /></div>
                                                            <div class="right">
                                                                <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="ShowHideCallMe(false, '','', '', '', '', '','0');return false;"
                                                                    ImageUrl="<%$Resources:ImageResource,CallMeCancelButtonImageUrl%>" AlternateText="Cancel" /></div>
                                                                    
                                                        </div>

                                                        <div class="w270px note">
                                                            <%=GetGlobalResourceObject("Menu", "CallMeEnquiries")%><a id="A1" href="~/contactus/contactus.aspx" runat="server" target="_parent"><%=GetGlobalResourceObject("Menu", "ClickHere")%></a>.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!-- CALL ME | End    -->

                                        <div class="section">
                                            <fieldset>
                                                <div class="form_subbox" id="divSummaryBox" runat="server" visible="false">

<%--                                                    <div class="right">
                                                        <asp:Image runat="server" ID="ImgHotlineViewQuote" ImageUrl="<%$ Resources:ImageResource,HotLineResultUrl%>" alt="Hotline" />
                                                    </div>  --%><%-- <div style="float: left; position: absolute; margin-left: 210px; width: 201px; height: 24px;
                                                        margin-top: 5px;">--%><div style="float: left; position: absolute; margin-left: 210px; margin-top: 5px;">
                                                        <asp:Button ID="ibtRunNewQuote" CssClass="button_w_run-new-quotes"
                                                            OnClick="ibtRunNewQuote_Click" runat="server" />
                                                    </div>
                                                 
                                                    <div class="trigger open">
                                                        <a href="#">Open</a></div>

                                                    
                                                    <div id="divQuoteSummery">
                                                        <div class="divhalf">
                                                            <div class="row3">
                                                                <label>
                                                                    <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblYrofManufacture" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3">
                                                                <label>
                                                                    <%= GetGlobalResourceObject("CarInsurance", "CarMakeModel")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblCarMakemodel" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3" style="display: none">
                                                                <label>
                                                                    <%=GetGlobalResourceObject ("CarInsurance","SumInsured") %></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblSumInsured" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3">
                                                                <label>
                                                                    <%= GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblCommencementdate" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3" style="display: none">
                                                                <label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NCB %</label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblNCBValue" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="divhalf">
                                                            <div class="row3">
                                                                <label>
                                                                    <%= GetGlobalResourceObject("CarInsurance", "InsuranceType")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblClass" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3">
                                                                <label>
                                                                    <%= GetGlobalResourceObject("CarInsurance","VehicleType")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblVehicleType" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3">
                                                                <label>
                                                                    <%= GetGlobalResourceObject("CarInsurance", "SpecifyNamedDriver")%></label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblAddDriver" runat="server"></asp:Label>
                                                                    </span>
                                                                    <div style="display: none;">
                                                                        <asp:TextBox ID="txtDriverCount" runat="server" Text="0"></asp:TextBox></div>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3" style="display: none">
                                                                <label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Red Plate?</label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblRedPlate" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div class="row3" style="display: none">
                                                                <label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Include Compulsory (CTPL)?</label><div class="field">
                                                                    <span class="indicator">
                                                                        <asp:Label ID="lblCTPL" runat="server"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>

                                            </fieldset><div class="clear"></div>
                                            <div id="divUserRefDetail" runat="server">
                                                <!-- CALL ME | Start  -->
                                                <div id="divNoMatchFound" runat="server" visible="false">
                                                    <b>No matches found!</b><p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We can’t find you an online quote. Please check back again.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
                                                    <div class="seperator">
                                                    </div>
                                                </div>
                                                <div id="divNoInstantMatchFound" runat="server" visible="false">
                                                    <a name="acallme"></a>
                                                    <div id="callmeOffline">
                                                        <div class="container">
                                                            <div class="header">
                                                            </div>
                                                            <div class="heading">
                                                                <img src="/images/callme/request_offline.gif" width="483" height="31" alt="Offline Quotes" /></div>
                                                            <div class="seperator">
                                                            </div>
                                                            <div class="body">
                                                                <div class="pad_22px">
                                                                    <h1>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dear
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="lblUserName" runat="server"></asp:Label></h1>
                                                                    <br />
                                                                    <p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We can’t find you an online quote. If you would like to an insurance broker to assist
                                                                        by getting you offline quotes within 3 working days, kindly fill up the information
                                                                        below and click “Submit”.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
                                                                    <div class="seperator">
                                                                    </div>
                                                                    <div id="divValidationSummary">
                                                                        <div class="row">
                                                                            <asp:ValidationSummary ID="vsproposal" runat="server" ValidationGroup="carrefuser"
                                                                                ShowSummary="True" HeaderText="Oops... Please complete the highlighted field"
                                                                                CssClass="errorSummary" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="w90p left">
                                                                        <asp:Label ID="lblRMessage" runat="server" Visible="false"></asp:Label>
                                                                        <div class="w190px left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Full Name:</div>
                                                                        <div class="blue left">
                                                                            <asp:TextBox ID="txtFullName" Width="250" MaxLength="80" runat="server"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="rfvFullName" runat="server" validationErrorCssClass="validationError"
                                                                                ValidationGroup="carrefuser" ErrorMessage="" Text="" ControlToValidate="txtFullName"></asp:RequiredFieldValidator>
                                                                            <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationGroup="carrefuser"
                                                                                ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" validationErrorCssClass="validationError"
                                                                                ControlToValidate="txtFullName" ErrorMessage=""></asp:RegularExpressionValidator>
                                                                        </div>
                                                                        <br />
                                                                        <div class="w190px left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NRIC:</div>
                                                                        <div class="blue left">
                                                                            <uc2:usrIdNumber ID="ddlIdNumber" runat="server" ValidationGroup="carrefuser" />
                                                                        </div>
                                                                        <br />
                                                                        <div class="w190px left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vehicle Number:</div>
                                                                        <div class="left">
                                                                            <asp:TextBox ID="txtVehicleNo" runat="server" MaxLength="10"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="rfvVehicleNo" runat="server" validationErrorCssClass="validationError"
                                                                                ErrorMessage="" ValidationGroup="carrefuser" ControlToValidate="txtVehicleNo"
                                                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                                                            <asp:RegularExpressionValidator ID="revVehicleNo" runat="server" ValidationExpression="[a-zA-Z]{3}\d{4}[a-zA-Z]"
                                                                                ControlToValidate="txtVehicleNo" ValidationGroup="carrefuser" Text="" ErrorMessage=""
                                                                                validationErrorCssClass="validationError"></asp:RegularExpressionValidator>
                                                                            <asp:CustomValidator ID="csvVehicleNo" runat="server" OnServerValidate="CheckVehicleNumber"
                                                                                ControlToValidate="txtVehicleNo" ValidationGroup="carrefuser" Text="" ErrorMessage="Vehicle number is wrong."
                                                                                validationErrorCssClass="validationError"></asp:CustomValidator>
                                                                        </div>
                                                                        <br />
                                                                        <div class="w190px left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mobile Number:</div>
                                                                        <div class="left">
                                                                            <uc1:usrMobileNo ID="txtMobileNo" ValidationGroup="carrefuser" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                                                                PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                                                                runat="server" />
                                                                        </div>
                                                                        <br />
                                                                        <div class="w190px left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Email:</div>
                                                                        <div class="left">
                                                                            <asp:TextBox ID="txtEmail" runat="server" Width="250" MaxLength="100"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="seperator">
                                                                    </div>
                                                                    <div>
                                                                        <div class="right">
                                                                            <%--<img src="/images/buttons/form_back_but.gif" width="118" height="45" alt="Back" />--%><asp:ImageButton ID="ibtNoMatchBack" runat="server" ImageUrl="~/images/buttons/form_back_but.gif"
                                                                                OnClick="ibtNoMatchBack_Click" onmouseover="this.src='/images/buttons/form_back_but_o.gif';"
                                                                                onmouseout="this.src='/images/buttons/form_back_but.gif';" AlternateText="Back" /></div>
                                                                        <div>
                                                                            <asp:ImageButton ID="ibtSubmit" runat="server" ImageUrl="~/images/buttons/submit_but.gif"
                                                                                AlternateText="Submit" CssClass="button" ValidationGroup="carrefuser" OnClientClick="LoadValidationErrorCss();ShowSubmitProgress('carrefuser');"
                                                                                OnClick="ibtSubmit_Click" /><%-- return SubmitConfirm();--%><%--OnClientClick="LoadValidationErrorCss();return SubmitConfirm();"--%></div>
                                                                    </div>
                                                                    <div class="clear">
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <!-- CALL ME | End    -->
                                            </div>
                                            <!-- <div style="width: 100%; height: auto; text-align: right" id="divHeadingbuydirect"
                        runat="server">
                        <asp:Image ImageUrl="~/images/bg/heading_buydirect.png" runat="server" ID="imgInstantBuy"
                            runat="server" /></div> -->
                                            <%--<br/><p>It could be because of your details information, e.g. number of driving years in Singapore.<br/><a href=''>Click here</a> to view or update your profile.</p>--%><%--EmptyDataText="<div class='pad_10'><h2>No Matches Found!</h2><span class='font_12'><strong>Please take note that there are no matches found based on your details entered.</strong></span><div class='seperator'></div><div class='seperator'></div>You can also return to our <a href='/'>homepage</a> or our dedicated <a href='/car-insurance/carandpolicy_details.aspx'>car insurance</a> page to re-quote.<div class='seperator'></div>Thank you for using CompareXpress.com.</div>" --%><asp:GridView ID="gvCarResult" runat="server" AutoGenerateColumns="False" CellPadding="2"
                                                Width="100%" GridLines="None" CssClass="gridstyle" DataKeyNames="CITempResultId,ProviderCompanyId"
                                                EmptyDataText="<div class='pad_10'><h2>No Matches Found!</h2><span class='font_12'><strong>Please take note that there are no matches found based on your details entered.</strong></span><div class='seperator'></div><div class='seperator'></div>You can also return to our <a href='/'>homepage</a> or our dedicated <a href='/car-insurance/'>car insurance</a> page to re-quote.<div class='seperator'></div>Thank you for using GluayGluay.com.</div>"
                                                EmptyDataRowStyle-CssClass="" OnRowCreated="gvCarResult_RowCreated" OnRowCommand="gvCarResult_RowCommand"
                                                AllowSorting="True" OnSorting="gvCarResult_Sorting" OnRowDataBound="gvCarResult_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="CITempResultId" HeaderText="CITempResultId" Visible="false" />
                                                    <asp:BoundField DataField="CXCoverTypeId" HeaderText="CoverTypeId" Visible="false" />
                                                    <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" Visible="false" />
                                                    <%--<asp:ImageField DataImageUrlField="CompanyLogoUrl" HeaderText="Insurer" SortExpression="InsurerName" />--%><asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,Insurer %>" SortExpression="CompanyName"><ItemTemplate>
                                                            <div>
                                                                <asp:Image ID="imgCompanyLogo" runat="server" AlternateText="Partners" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblPackageName" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--Company Name--%><asp:BoundField DataField="CompanyName" Visible="false" HeaderText="Company Name"
                                                        SortExpression="CompanyName" /><%--Annual Premium--%><%--                                                    <asp:BoundField DataField="TotalVMI" DataFormatString=" {0:#,0.00}" HtmlEncode="false"
                                                        ItemStyle-Font-Bold="true" HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>"
                                                        HeaderStyle-Width="90" ItemStyle-Font-Size="Small" SortExpression="TotalVMI" />--%><asp:TemplateField  
                                                        ItemStyle-Font-Bold="true" HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>" 
                                                        HeaderStyle-Width="90" ItemStyle-Font-Size="Small" SortExpression="PromotionPrice" Visible="true" ><ItemTemplate>

                                                           <div style="color:#5a5a5a;">
                                                                <asp:Label ID="lblPremiumNormal" runat="server" Text="<%$Resources:CarInsuranceResultPage,PriceNormal %>" Font-Size="10px" />
                                                                <%--<s class="strike"><asp:Label ID="lblPremiumPrice" runat="server" Text=""  /></s>--%><asp:Label ID="lblPremiumPrice" runat="server" Text="" Font-Size="11px" /></div>
                                                            <div style="height:3px;"></div>
                                                            
                                                           <div style="background:#ffe401; padding:2px; border:1px solid black" id="divPromo" runat="server">
                                                                <asp:Label ID="lblPremiumPromotion" runat="server" Text="<%$Resources:CarInsuranceResultPage,PriceOnline %>" Font-Size="10px"/>
                                                                <asp:Label ID="lblPromotionPrice" runat="server" Text="" Font-Size="11px" Font-Bold/>
                                                            </div>
                                                            
                                                            <div style="height:3px;"></div>
                                                            

                                                            <div>
                                                                <asp:Label ID="lblPremiumSave" runat="server" Text="<%$Resources:CarInsuranceResultPage,PriceSave %>" Font-Size="10px" />
                                                                <asp:Label ID="lblSavePrice" runat="server" Text="" ForeColor="Red"  Font-Size="11px"/>
                                                            </div>
                                                            
                                                            <div style="height:3px;"></div>
                                                            
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    
                                                    <asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,FloodCover %>" SortExpression="CompanyName">
                                                        <ItemTemplate>
                                                            <div style="padding-top:3px;">
                                                                <asp:Image ID="imgFloodCover" ImageUrl="/images/icon/flood_car.png" runat="server" AlternateText="Flood" />
                                                            </div>

                                                        </ItemTemplate>
                                                    </asp:TemplateField>                                                    
                                                    <%--<asp:BoundField DataField="AnnualPremium" Visible="false" />--%><%--CTPL--%><asp:TemplateField HeaderText="" HeaderStyle-Width=" " SortExpression="TotalCMI"
                                                        Visible="false"><ItemTemplate>
                                                            <div>
                                                                <asp:Image ID="imgCTPL" ImageUrl="~/images/icon/X.png" runat="server" AlternateText="Close" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblCTPLSymbol" runat="server" Text="" />
                                                                <asp:Label ID="lblCTPL" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--Deductible (per accident)--%><%--<asp:BoundField DataField="DEC" ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                DataFormatString="฿{0:#,0}" HeaderStyle-Width="100" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,DEC %>"
                                SortExpression="DEC" />--%><asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                                        HeaderStyle-Width="80" HeaderText="<%$Resources:CarInsuranceResultPage,DEC %>"
                                                        SortExpression="DEC"><ItemTemplate>
                                                            <div>
                                                                <asp:Label ID="lblDECZero" runat="server" Text="<%$Resources:CarInsuranceResultPage,Waived %>" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblDECSymbol" runat="server" Text="" />
                                                                <asp:Label ID="lblDEC" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--Own Damage/Fire/Theft--%><%--<asp:BoundField DataField="SumInsured" ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                DataFormatString="฿{0:#,0}" HeaderStyle-Width="100" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,OwnDamageFireTheft %>"
                                SortExpression="SumInsured" />--%><asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                                        HeaderStyle-Width="60" HeaderText="<%$Resources:CarInsuranceResultPage,OwnDamage %>"
                                                        SortExpression="SumInsured"><ItemTemplate>
                                                            <div>
                                                                <asp:Image ID="imgSumInsured" ImageUrl="/images/icons/X.gif" runat="server" AlternateText="Close" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblSumInsuredSymbol" runat="server" Text="" />
                                                                <asp:Label ID="lblSumInsured" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                                        HeaderStyle-Width="45" HeaderText="<%$Resources:CarInsuranceResultPage,Fire %>"
                                                        SortExpression="Fire">
                                                        <ItemTemplate>
                                                            <div>
                                                                <asp:Image ID="imgFire" ImageUrl="/images/icons/X.gif" runat="server" AlternateText="Close" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblFireSymbol" runat="server" Text="" />
                                                                <asp:Label ID="lblFire" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                                        HeaderStyle-Width="45" HeaderText="<%$Resources:CarInsuranceResultPage,Theft %>"
                                                        SortExpression="Theft">
                                                        <ItemTemplate>
                                                            <div>
                                                                <asp:Image ID="imgTheft" ImageUrl="/images/icons/X.gif" runat="server" AlternateText="Close" />
                                                            </div>
                                                            <div>
                                                                <asp:Label ID="lblTheftSymbol" runat="server" Text="" />
                                                                <asp:Label ID="lblTheft" runat="server" Text="" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--Liability for Property Damage--%><asp:BoundField DataField="TPPD" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPPD %>"
                                                        SortExpression="TPPD" /><%--Liability for Bodily Injury/Death--%><asp:BoundField DataField="TPBIA" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIA %>"
                                                        SortExpression="TPBIA" /><%--Bodily Injury/Death (per person)--%><asp:BoundField DataField="TPBIP" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIP %>"
                                                        SortExpression="TPBIP" /><%--Personal Accident (driver)--%><asp:BoundField DataField="PADriver" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,PADriver %>"
                                                        SortExpression="PADriver" /><%--Personal Accident (per passenger)
                            <asp:BoundField DataField="PAPassenger" HeaderStyle-CssClass="gold_bottom" DataFormatString="฿{0:#,0}"
                                HeaderStyle-Width="100" HtmlEncode="false" HeaderText="Personal Accident<br/><span class='grid_font'>(per passenger)</span>"
                                SortExpression="PAPassenger" />
                            <%--Medical Expenses (per person)--%>
                                                    <asp:BoundField DataField="MedicalExpense" ItemStyle-CssClass="gold_item" DataFormatString="{0:#,0}"
                                                        HeaderStyle-Width="80" HtmlEncode="false" HeaderStyle-CssClass="gold_bottom"
                                                        HeaderText="<%$Resources:CarInsuranceResultPage,MED %>" />
                                                    <%--SortExpression="MedExp" %>
                            <%--Bail Bond (per accident)--%>
                                                    <asp:BoundField DataField="BailBond" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,BailBond %>"
                                                        SortExpression="BailBond" />
                                                    <%--Button Area HeaderStyle-CssClass="buydirect"--%>
                                                    
                                                    <asp:TemplateField HeaderText="" HeaderStyle-CssClass="" HeaderStyle-Width="110">
                                                        <HeaderTemplate>
<%--                                                            <asp:Image ID="Image1" runat="server" ImageUrl="<%$Resources:ImageResource,BuyOnlineHeaderUrl%>"
                                                                AlternateText="Buy Online" />--%>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <div class="gridbtn4">
                                                                <a href="#" runat="server" id="hplCallMe" class="more_info_but" visible="true">
                                                                    <asp:Image runat="server" ImageUrl="<%$Resources:ImageResource,CallMeResultUrl%>"
                                                                        ID="imgCallMe" AlternateText="Call Me" />
                                                                </a>
                                                                <asp:ImageButton ID="ibtBuyNow" ImageUrl="<%$Resources:ImageResource,BuyNowUrl%>"
                                                                    runat="server" CommandName="BuyNow" AlternateText="Buy" /><br />
                                                                <uc1:usrMoreInfoDropdownButton ID="ibtMoreInfo" runat="server" BenefitNavigateURL=""
                                                                    WorkShopNavigateURL="" RowId="row1" />
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle />
                                                <PagerStyle />
                                                <SelectedRowStyle />
                                                <HeaderStyle CssClass="gridheader" />
                                                <EditRowStyle />
                                                <AlternatingRowStyle CssClass="gridodd" />
                                                <RowStyle CssClass="grideven" />
                                            </asp:GridView>
                                            <div style="height: 150px" runat="server" id="divMessage" visible="false">
                                                <asp:Label ID="lblMessage" Font-Size="20px" Font-Bold="true" runat="server" Visible="false"></asp:Label>
                                            </div>                                            
                                            <div>                                               
                                                <div class="submit">
                                                    <asp:Button runat="server" ID="btnBack" Visible="true" onmousedown="this.className = 'button_back_mousedown';"
                                                        onmouseup="this.className = 'button_back';" onmouseout="this.className = 'button_back';"
                                                        CssClass="button_back" CausesValidation="false" OnClientClick="this.removeAttribute('onmouseout'); this.removeAttribute('onmouseup'); this.className = 'button_processing';"
                                                        OnClick="btnBack_Click" />
                                                </div>
                                                <div class="nextstep">
                                                    <span class="button2">
                                                        <asp:Button ID="btnNewCarInsurance" runat="server" OnClick="btnNewCarInsurance_Click"
                                                            Text="Start Over [New Car]" Visible="False" />
                                                    </span>
                                                </div>
                                            </div>
                                            <div class="seperator_10px"></div>
                                            <div runat="server" id="divImportant"><%=GetGlobalResourceObject("CarInsuranceResultPage", "ImportantNote")%></div>
                                            <div class="seperator_10px"></div>
                                            <div class="clear"></div>
                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- Column Content | End   -->
                        </div>
                    </div>

            </div>
        </div>

        <script type="text/javascript">
            //        IncreaseProgress(100);
            //        HideLoading();
            AddMoreInfoRows();
            $(document).ready(function() {

                if ($('div.trigger').length > 0) {
                    $('div.trigger').click(function() {
                        if ($(this).hasClass('open')) {
                            $(this).removeClass('open');
                            $(this).addClass('close');
                            $(this).next().slideDown(100);
                            return false;
                        } else {
                            $(this).removeClass('close');
                            $(this).addClass('open');
                            $(this).next().slideUp(100);
                            return false;
                        }
                    });
                }

            });
            function ShowHideDiv(divName, varOnOff) {
                if (varOnOff) {
                    document.getElementById(divName).style.display = "";
                }
                else {
                    document.getElementById(divName).style.display = "none";
                }
            }
            function showhide(divName) {

                el = document.getElementById(divName);
                el.style.display = (el.style.display == "none") ? "" : "none";

            }
        </script>

        <script type="text/javascript">
            function ShowHideCallMe(showhideFlag, companyName, premiumVal, covertype, workshop, companyLogoUrl, CarMakeModel, CompanyId) {
                //alert(showhideFlag + companyName);
                if (showhideFlag) {
                    document.getElementById("callme").style.display = '';
                    document.getElementById("<%=lblCallMeMakeModel.ClientID%>").innerHTML = CarMakeModel;
                    document.getElementById("<%=inputCallMeMakeModel.ClientID%>").value = CarMakeModel;
                    document.getElementById("<%=lblCallMeCompanyName.ClientID%>").innerHTML = companyName;
                    document.getElementById("<%=inputCallMeCompanyName.ClientID%>").value = companyName;
                    document.getElementById("imgCallMeCompanyLogo").src = companyLogoUrl;
                    document.getElementById("<%=CompanyId.ClientID%>").value = CompanyId;
                }
                else {
                    document.getElementById("callme").style.display = 'none';
                    document.getElementById("<%=lblCallMeMakeModel.ClientID%>").innerHTML = '';
                    document.getElementById("<%=lblCallMeCompanyName.ClientID%>").innerHTML = '';
                    document.getElementById("<%=inputCallMeCompanyName.ClientID%>").value = '';
                    document.getElementById("imgCallMeCompanyLogo").src = '';
                    document.getElementById("<%=CompanyId.ClientID%>").value = '0';
                }
            }
        </script>

        <script type="text/javascript">
            function SubmitConfirm() {
                var _retVal = false;
                if (Page_ClientValidate('carrefuser')) {

                    if (document.getElementById('<%=lblCultureInfo.ClientID%>').value == 'th-TH') {
                        _retVal = confirm('กดปุ่มตกลง เพื่อให้ GluayGluay.com บันทึกข้อมูลของคุณ');
                    }
                    else {
                        _retVal = confirm('By pressing the submit button, you authorise GluayGluay.com to save your personal information.');
                    }
                    //_retVal = confirm('By pressing the submit button, you authorise CompareXpress to save your personal information.');

                }
                alert(_retVal);
                return _retVal;
            }

            function SubmitConfirm() {
                var _retVal = false;
                if (Page_ClientValidate('callme')) {
                    if (document.getElementById('<%=lblCultureInfo.ClientID%>').value == 'th-TH') {
                        _retVal = confirm('กดปุ่มตกลง เพื่อให้ GluayGluay.com บันทึกข้อมูลของคุณ');
                    }
                    else {
                        _retVal = confirm('By pressing the confirm button, you authorise GluayGluay.com to save your personal information.');
                    }
                    //_retVal = confirm('By pressing the confirm button, you authorise CompareXpress to save your personal information.');            


                }
                return _retVal;
            }

            
        </script>

        <script type="text/javascript">
            function onLoad() {
                //FreezeGridViewHeader('<%=gvCarResult.ClientID%>', 'WrapperDiv');
            }


            function FreezeGridViewHeader(gridID, wrapperDivCssClass) {
                var grid = document.getElementById(gridID);
                if (grid != 'undefined') {
                    grid.style.visibility = 'hidden';
                    var div = null;
                    if (grid.parentNode != 'undefined') {
                        //Find wrapper div output by GridView
                        div = grid.parentNode;
                        if (div.tagName == "DIV") {
                            div.className = wrapperDivCssClass;
                            div.style.overflow = "auto";
                        }
                    }
                    //Find DOM TBODY element and remove first TR tag from 
                    //it and add to a THEAD element instead so CSS styles
                    //can be applied properly in both IE and FireFox
                    var tags = grid.getElementsByTagName('TBODY');
                    if (tags != 'undefined') {
                        var tbody = tags[0];
                        var trs = tbody.getElementsByTagName('TR');
                        var headerHeight = 8;
                        if (trs != 'undefined') {
                            headerHeight += trs[0].offsetHeight;
                            var headTR = tbody.removeChild(trs[0]);
                            var head = document.createElement('THEAD');
                            head.appendChild(headTR);
                            grid.insertBefore(head, grid.firstChild);
                        }
                        //Needed for Firefox
                        tbody.style.height =
                  (div.offsetHeight - headerHeight) + 'px';
                        tbody.style.overflowX = "hidden";
                        tbody.overflow = 'auto';
                        tbody.overflowX = 'hidden';
                    }
                    grid.style.visibility = 'visible';
                }
            }
            onLoad();
        </script>

        <script src="/includes/carinsurance/results.js" type="text/javascript"></script>

        <!--END FREEZE PANE-->
        
        <!-- Google Code for Results Page TH Conversion Page -->
        <script type="text/javascript">
            /* <![CDATA[ */
            var google_conversion_id = 1013678288;
            var google_conversion_language = '<%= GetGlobalResourceObject("AdWords","language")%>';
            var google_conversion_format = "3";
            var google_conversion_color = "ffffff";
            var google_conversion_label = '<%= GetGlobalResourceObject("AdWords","google_conversion_label")%>';
            var google_conversion_value = 0;
            var google_remarketing_only = false;
            /* ]]> */
        </script>
        <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
        </script>
        <noscript>
        <div style="display:inline;">
        <img height="1" width="1" style="border-style:none;" alt="" src="<%=GetGlobalResourceObject ("AdWords","source" )%>"/>
        
        </div>
        </noscript>        
        

        
</asp:Content>
